import pymongo



def inner_kill_row(student_id):
    client = pymongo.MongoClient("mongodb://localhost:27017/")
    db = client["ACM_MEMBER"]
    collections = db["TEAM_INFORMATION"]
    collections.delete_one({"student_id": student_id})
    collections = db["VJUDGE_INFORMATION"]
    collections.delete_one({"student_id": student_id})
    collections = db["NOWCODER_INFORMATION"]
    collections.delete_one({"student_id": student_id})
    collections = db["ATCODER_INFORMATION"]
    collections.delete_one({"student_id": student_id})
    collections = db["CODEFORCES_INFORMATION"]
    collections.delete_one({"student_id": student_id})
    collections = db["LUOGU_INFORMATION"]
    collections.delete_one({"student_id": student_id})

def outer_kill_row(student_id):
    client = pymongo.MongoClient("mongodb://localhost:27017/")
    db = client["ACM_MEMBER"]
    collections = db["OUT_TEAM_INFORMATION"]
    collections.delete_one({"student_id": student_id})
    collections = db["VJUDGE_INFORMATION"]
    collections.delete_one({"student_id": student_id})
    collections = db["NOWCODER_INFORMATION"]
    collections.delete_one({"student_id": student_id})
    collections = db["ATCODER_INFORMATION"]
    collections.delete_one({"student_id": student_id})
    collections = db["CODEFORCES_INFORMATION"]
    collections.delete_one({"student_id": student_id})
    collections = db["LUOGU_INFORMATION"]
    collections.delete_one({"student_id": student_id})

if __name__ == "__main__":
    outer_kill_row("2021000001")

